#include "CheckPointObject.h"

#include "..\Game.h"

#include "..\..\SGD Wrappers\SGD_GraphicsManager.h"

CheckPointObject::CheckPointObject()
{
	SetID(10);
	bCheckPointPassed = false;
}


CheckPointObject::~CheckPointObject()
{
}

int CheckPointObject::Update(float dt)
{
	return 0;
}

void CheckPointObject::Render()
{
	StationaryObject::Render();
}

void CheckPointObject::HandleCollision(const GameObject* collision)
{
	if (!bCheckPointPassed)
	{
		bCheckPointPassed = true;
		GAME->SetCheckpoint(true);
		GAME->PlayCheckPointAudio();
	}
}